From 0f15980edd638403350dd50f2cef908cda917990 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 8 May 2008 20:40:03 +0000 Subject: [PATCH] Revert r34444, breaks submissions --- includes/WatchlistEditor.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index 6a39acb60f..172cf4bcb3 100644 --- a/includes/WatchlistEditor.php +++ b/includes/WatchlistEditor.php @@ -431,8 +431,7 @@ class WatchlistEditor { * @return int */ public static function getMode( $request, $par ) { - if (($mode = $par) === "") - $mode = strtolower( $request->getVal( 'action', "" ) ); + $mode = strtolower( $request->getVal( 'action', $par ) ); switch( $mode ) { case 'clear': return self::EDIT_CLEAR; -- 2.20.1